<?php /* Smarty version 2.6.18, created on 2012-02-21 21:09:51
         compiled from user/box-list.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'user/box-list.tpl', 20, false),array('function', 'image', 'user/box-list.tpl', 23, false),array('modifier', 'strip_tags', 'user/box-list.tpl', 61, false),)), $this); ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
    <thead>
        <tr>
            <?php if ($this->_tpl_vars['arrResult'] && isset ( $_SESSION['user'] ) && ( ( ( $_SESSION['user'] & 1 << 3 ) > 0 ) || ( ( $_SESSION['user'] & 1 << 4 ) > 0 ) )): ?>
                <th class="firstChild" width="30"><input type="checkbox" name="pcheckall" id="pcheckall" onclick="javascript:checkAll(this.form,'puserid[]',this.checked);"/></th>
                <th width="85">Hình đại diện</th>
            <?php else: ?>
                <th class="firstChild" width="85">Hình đại diện</th>
            <?php endif; ?>                                       
            <th width="200">Email</th>
            <th>Thông tin</th>
            <?php if ($this->_tpl_vars['arrResult'] && isset ( $_SESSION['user'] )): ?>
                <th width="100">&nbsp;</th>
            <?php endif; ?>
        </tr>
    </thead>
    <tbody>
        <?php if ($this->_tpl_vars['arrResult']): ?>
            <?php $_from = $this->_tpl_vars['arrResult']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
                <tr class="<?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?>
">
                    <?php if (isset ( $_SESSION['user'] ) && ( ( ( $_SESSION['user'] & 1 << 3 ) > 0 ) || ( ( $_SESSION['user'] & 1 << 4 ) > 0 ) )): ?>
                        <td class="firstChild" align="center"><input type="checkbox" id="puserid<?php echo $this->_tpl_vars['item']['userid']; ?>
" name="puserid[]" value="<?php echo $this->_tpl_vars['item']['userid']; ?>
" onclick="javascript:checkOneItem(this.form, 'pcheckall')"/></td>
                        <td><img src="<?php echo smarty_function_image(array('path' => $this->_tpl_vars['item']['image_path'],'type' => 1,'small' => 1), $this);?>
" width="75" alt="<?php echo $this->_tpl_vars['item']['username']; ?>
 tham gia tìm bạn bống phương trên <?php echo @DOMAIN_NAME; ?>
" border="0" /></td>
                    <?php else: ?>
                        <td class="firstChild"><img src="<?php echo smarty_function_image(array('path' => $this->_tpl_vars['item']['image_path'],'type' => 1,'small' => 1), $this);?>
" width="75" alt="<?php echo $this->_tpl_vars['item']['username']; ?>
 tham gia tìm bạn bống phương trên <?php echo @DOMAIN_NAME; ?>
" border="0" /></td>
                    <?php endif; ?>
                    <td><?php echo $this->_tpl_vars['item']['email']; ?>
</td>
                    <td> 
                        <div>
                            <span class="firstItem">Họ &amp; tên:</span>
                            <span class="lastItem"><?php echo $this->_tpl_vars['item']['fullname']; ?>
 (<?php echo $this->_tpl_vars['item']['ages']; ?>
 tuổi)</span>
                        </div> 
                        <?php if ($this->_tpl_vars['item']['username']): ?> 
                        <div class="topLine">
                            <span class="firstItem">Username:</span>
                            <span class="lastItem"><?php echo $this->_tpl_vars['item']['username']; ?>
</span>
                        </div> 
                        <?php endif; ?>                                          	
                        <div class="topLine">
                            <span class="firstItem">Giới tính:</span>
                            <span class="lastItem"><?php echo $this->_tpl_vars['arrGender'][$this->_tpl_vars['item']['gender']]; ?>
</span>
                        </div>
                        <?php if ($this->_tpl_vars['item']['address'] || $this->_tpl_vars['item']['district_name'] || $this->_tpl_vars['item']['province_name'] || $this->_tpl_vars['item']['country_name']): ?>
                            <div class="topLine">
                                <span class="firstItem">Địa chỉ:</span>
                                <span class="lastItem">
                                    <?php if ($this->_tpl_vars['item']['address']): ?><?php echo $this->_tpl_vars['item']['address']; ?>
,&nbsp;<?php endif; ?>
                                    <?php if ($this->_tpl_vars['item']['district_name']): ?><?php echo $this->_tpl_vars['item']['district_name']; ?>
,&nbsp;<?php endif; ?>
                                    <?php if ($this->_tpl_vars['item']['province_name']): ?><?php echo $this->_tpl_vars['item']['province_name']; ?>
,&nbsp;<?php endif; ?>
                                    <?php if ($this->_tpl_vars['item']['country_name']): ?><?php echo $this->_tpl_vars['item']['country_name']; ?>
<?php endif; ?>
                                </span>
                            </div>
                        <?php endif; ?>
                        <?php if ($this->_tpl_vars['item']['mobile']): ?>
                            <div class="topLine">
                                <span class="firstItem">Di động:</span> 
                                <span class="lastItem"><?php echo $this->_tpl_vars['item']['mobile']; ?>
 (<?php if (( $this->_tpl_vars['item']['verified'] & 1 << 1 ) > 0): ?>Đã<?php else: ?>Chưa<?php endif; ?> chứng thực)</span>
                            </div>
                        <?php endif; ?>
                        <?php if ($this->_tpl_vars['item']['introduce']): ?>
                            <div class="topLine"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['introduce'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
</div>
                        <?php endif; ?>
                    </td>
                    <td align="center">
                        <?php if (isset ( $_SESSION['user'] )): ?>
                            <?php if (( $_SESSION['user'] & 1 << 0 ) > 0): ?>
                                <a href="<?php echo @HOST_BACKEND; ?>
user/detail?userid=<?php echo $this->_tpl_vars['item']['userid']; ?>
&amp;statuses=<?php echo $this->_tpl_vars['item']['statuses']; ?>
&amp;page=<?php echo $_GET['page']; ?>
" title="Xem thông tin chi tiết">
                                    <img src="<?php echo @HOST_STATICS; ?>
img/icon/ad-link.png" alt="Detail" border="0" width="16" height="16" />
                                </a>
                            <?php endif; ?>
                            <?php if (isset ( $_SESSION['photo'] ) && $_SESSION['photo'] > 0): ?>
                                <a href="<?php echo @HOST_BACKEND; ?>
photo/user?userid=<?php echo $this->_tpl_vars['item']['userid']; ?>
&amp;statuses=<?php echo $this->_tpl_vars['item']['statuses']; ?>
&amp;page=<?php echo $_GET['page']; ?>
" title="Bộ sưu tập ảnh">
                                    <img src="<?php echo @HOST_STATICS; ?>
img/icon/ad-album.png" alt="Album" border="0" width="16" height="16" />
                                </a>
                            <?php endif; ?>
                            <?php if (( $_SESSION['user'] & 1 << 2 ) > 0): ?>
                                <a href="<?php echo @HOST_BACKEND; ?>
user/edit?userid=<?php echo $this->_tpl_vars['item']['userid']; ?>
&amp;statuses=<?php echo $this->_tpl_vars['item']['statuses']; ?>
&amp;page=<?php echo $_GET['page']; ?>
" title="Cập nhật thông tin">
                                    <img src="<?php echo @HOST_STATICS; ?>
img/icon/ad-edit.png" alt="Edit" border="0" width="16" height="16" />
                                </a>
                                <a href="<?php echo @HOST_BACKEND; ?>
user/changepass?userid=<?php echo $this->_tpl_vars['item']['userid']; ?>
&amp;statuses=<?php echo $this->_tpl_vars['item']['statuses']; ?>
&amp;page=<?php echo $_GET['page']; ?>
" title="Thay đổi mật khẩu">
                                    <img src="<?php echo @HOST_STATICS; ?>
img/icon/ad-change-password.png" alt="Change password" border="0" width="16" height="16" />
                                </a>
                            <?php endif; ?>
                            
                        <?php else: ?>
                            &nbsp;
                        <?php endif; ?>
                    </td>
                </tr>
            <?php endforeach; endif; unset($_from); ?>
        <?php else: ?>
        	<tr><td colspan="3" align="center">Không có dữ liệu</td></tr>
        <?php endif; ?>
    </tbody>
</table>